.class public abstract Lcom/adwhirl/a/c;
.super Ljava/lang/Object;
.source "AdWhirlAdapter.java"


# static fields
.field protected static c:Ljava/lang/String;

.field protected static d:Ljava/lang/String;

.field protected static e:Ljava/lang/String;

.field protected static f:Ljava/lang/String;

.field protected static g:Ljava/lang/String;


# instance fields
.field protected final a:Ljava/lang/ref/WeakReference;

.field protected b:Lcom/adwhirl/b/c;


# direct methods
.method public constructor <init>(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 35
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 36
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/adwhirl/a/c;->a:Ljava/lang/ref/WeakReference;

    .line 37
    iput-object p2, p0, Lcom/adwhirl/a/c;->b:Lcom/adwhirl/b/c;

    .line 38
    return-void
.end method

.method private static a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;
    .locals 2
    .parameter

    .prologue
    .line 136
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Unsupported ration type: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/adwhirl/b/c;->b:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    .line 137
    const/4 v0, 0x0

    return-object v0
.end method

.method private static a(Ljava/lang/String;Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    .line 107
    const/4 v0, 0x0

    .line 111
    :try_start_0
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v1

    .line 113
    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Class;

    .line 114
    const/4 v3, 0x0

    const-class v4, Lcom/adwhirl/AdWhirlLayout;

    aput-object v4, v2, v3

    .line 115
    const/4 v3, 0x1

    const-class v4, Lcom/adwhirl/b/c;

    aput-object v4, v2, v3

    .line 117
    invoke-virtual {v1, v2}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;

    move-result-object v1

    .line 119
    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    .line 120
    const/4 v3, 0x0

    aput-object p1, v2, v3

    .line 121
    const/4 v3, 0x1

    aput-object p2, v2, v3

    .line 123
    invoke-virtual {v1, v2}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/adwhirl/a/c;
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_5
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_4
    .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_0

    move-object v0, p0

    .line 132
    :goto_0
    return-object v0

    :catch_0
    move-exception v1

    goto :goto_0

    .line 130
    :catch_1
    move-exception v1

    goto :goto_0

    :catch_2
    move-exception v1

    goto :goto_0

    :catch_3
    move-exception v1

    goto :goto_0

    :catch_4
    move-exception v1

    goto :goto_0

    :catch_5
    move-exception v1

    goto :goto_0
.end method

.method public static a(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 141
    invoke-static {p0, p1}, Lcom/adwhirl/a/c;->b(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    .line 142
    if-eqz v0, :cond_0

    .line 143
    invoke-virtual {v0}, Lcom/adwhirl/a/c;->a()V

    return-void

    .line 147
    :cond_0
    new-instance v0, Ljava/lang/Exception;

    const-string v1, "Invalid adapter"

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public static a(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 161
    sput-object p0, Lcom/adwhirl/a/c;->c:Ljava/lang/String;

    .line 162
    return-void
.end method

.method private static b(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 44
    :try_start_0
    iget v0, p1, Lcom/adwhirl/b/c;->b:I

    sparse-switch v0, :sswitch_data_0

    .line 94
    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    .line 102
    :goto_0
    return-object v0

    .line 46
    :sswitch_0
    const-string v0, "com.google.ads.AdView"

    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 47
    new-instance v0, Lcom/adwhirl/a/i;

    invoke-direct {v0, p0, p1}, Lcom/adwhirl/a/i;-><init>(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)V
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/VerifyError; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_0

    .line 98
    :catch_0
    move-exception v0

    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 51
    :cond_0
    :try_start_1
    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 55
    :sswitch_1
    const-string v0, "com.qwapi.adclient.android.view.QWAdView"

    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 56
    const-string v0, "com.adwhirl.adapters.QuattroAdapter"

    invoke-static {v0, p0, p1}, Lcom/adwhirl/a/c;->a(Ljava/lang/String;Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 59
    :cond_1
    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 63
    :sswitch_2
    const-string v0, "com.millennialmedia.android.MMAdView"

    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 64
    const-string v0, "com.adwhirl.adapters.MillennialAdapter"

    invoke-static {v0, p0, p1}, Lcom/adwhirl/a/c;->a(Ljava/lang/String;Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 67
    :cond_2
    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 70
    :sswitch_3
    const-string v0, "com.google.ads.GoogleAdView"

    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 71
    new-instance v0, Lcom/adwhirl/a/a;

    invoke-direct {v0, p0, p1}, Lcom/adwhirl/a/a;-><init>(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)V
    :try_end_1
    .catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/VerifyError; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    .line 102
    :catch_1
    move-exception v0

    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 75
    :cond_3
    :try_start_2
    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 78
    :sswitch_4
    const-string v0, "com.zestadz.android.ZestADZAdView"

    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 79
    const-string v0, "com.adwhirl.adapters.ZestAdzAdapter"

    invoke-static {v0, p0, p1}, Lcom/adwhirl/a/c;->a(Ljava/lang/String;Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 82
    :cond_4
    invoke-static {p1}, Lcom/adwhirl/a/c;->a(Lcom/adwhirl/b/c;)Lcom/adwhirl/a/c;

    move-result-object v0

    goto :goto_0

    .line 85
    :sswitch_5
    new-instance v0, Lcom/adwhirl/a/d;

    invoke-direct {v0, p0, p1}, Lcom/adwhirl/a/d;-><init>(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)V

    goto :goto_0

    .line 88
    :sswitch_6
    new-instance v0, Lcom/adwhirl/a/h;

    invoke-direct {v0, p0, p1}, Lcom/adwhirl/a/h;-><init>(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)V

    goto :goto_0

    .line 91
    :sswitch_7
    new-instance v0, Lcom/adwhirl/a/g;

    invoke-direct {v0, p0, p1}, Lcom/adwhirl/a/g;-><init>(Lcom/adwhirl/AdWhirlLayout;Lcom/adwhirl/b/c;)V
    :try_end_2
    .catch Ljava/lang/ClassNotFoundException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/lang/VerifyError; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_0

    .line 44
    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x6 -> :sswitch_2
        0x8 -> :sswitch_1
        0x9 -> :sswitch_5
        0xe -> :sswitch_3
        0x10 -> :sswitch_6
        0x11 -> :sswitch_7
        0x14 -> :sswitch_4
    .end sparse-switch
.end method

.method public static b(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 165
    sput-object p0, Lcom/adwhirl/a/c;->d:Ljava/lang/String;

    .line 166
    return-void
.end method

.method public static c(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 169
    sput-object p0, Lcom/adwhirl/a/c;->e:Ljava/lang/String;

    .line 170
    return-void
.end method

.method public static d(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 173
    sput-object p0, Lcom/adwhirl/a/c;->f:Ljava/lang/String;

    .line 174
    return-void
.end method


# virtual methods
.method public abstract a()V
.end method
